<?php
/**
 * 业务招待费
 * Created by PhpStorm.
 * User: 23783
 * Date: 2018/3/15
 * Time: 9:59
 */

namespace Controllers\Category;

use Controllers\Pdf\BusinessEntertainingPdf;

class BusinessEntertaining extends BaseConreollers {

    protected  $pdf;
    public function __construct()
    {
        //父类的__construct都继承下来
        parent::__construct();
        $this->pdf  =new BusinessEntertainingPdf();
    }

    function GetWorkflowState($document_id){
        if (isset($document_id)) {
           $result  = parent::BaseGetWorkflowState($document_id);
           //TODO  测试返回的数据集合
//        echo "<pre style='color: red'>";var_dump($result);echo "<pre>";exit();
           $this->pdf->CreatePdfDocument($result);
        }
    }
}